package com.lyh.miniostudy.service;

import com.lyh.miniostudy.pojo.User;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Optional;

@Service
public interface UserService {
    List<User> getAllUsers();

    Optional<User> getUserById(String id);

    User createUser(User user);

    User updateUser(String id, User user);

    void deleteUser(String id);
}
